import { useReactive } from "ahooks";
import { useModel } from "umi";
import { useEffect } from "react";
import compress from "gql-compress";

const useUpdateCategory = () => {
    const { graphqlFetch } = useModel("global");

    const state = useReactive({
        updateCategoryLoading: false,
    });

    // 加载所有部门信息, 用树的数据格式
    const updateCategory = async ({ ccUuid, saveDate }) => {
        state.updateCategoryLoading = true;
        let variables = {

        };
        // let res = await graphqlFetch({
        //     query,
        //     variables,
        // });
        // state.updateCategoryLoading = false;
        // return res
    };

    return { updateCategory };
};

const query = compress(``);

export default useUpdateCategory;
